package com.gjm.demo;


import com.gjm.demo.controller.StuController;
import com.gjm.demo.controller.TestController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class SpringBootDemo2025417Application {

	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(SpringBootDemo2025417Application.class, args);

//		//获取 TestController 对象
//		TestController controller = context.getBean(TestController.class);
//		controller.print();

		//获取 StuController 对象
		StuController stuController = context.getBean(StuController.class);
		stuController.print();
	}

}
